package com.example.likegifmarker.view.wdigets;

import android.content.Context;

import net.lucode.hackware.magicindicator.buildins.commonnavigator.titles.SimplePagerTitleView;

public class BigSimplePagerTitleView extends SimplePagerTitleView {

    private int selectedTextSize = 0;
    private int normalTextSize = 0;

    public BigSimplePagerTitleView(Context context) {
        super(context);
    }

    @Override
    public void onSelected(int index, int totalCount) {
        super.onSelected(index, totalCount);
        if (selectedTextSize > 0) {
            setTextSize(selectedTextSize);
        }
    }

    @Override
    public void onDeselected(int index, int totalCount) {
        super.onDeselected(index, totalCount);
        if (normalTextSize > 0) {
            setTextSize(normalTextSize);
        }
    }


    public void setTextSize(int normalTextSize, int selectedTextSize) {
        this.selectedTextSize = selectedTextSize;
        this.normalTextSize = normalTextSize;
    }
}
